$阴影: 0 0 6px 0
    rgba(
        $color: #666,
        $alpha: 0.2,
    );

#palette-box {
    z-index: 40;
    #palette {
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        flex-wrap: wrap;
        width: 18rem;
        box-sizing: border-box;
        border-radius: 0.25rem;
        box-shadow: $阴影;
        padding: 1rem;
        padding-top: 1.75rem;
        line-height: 1.375em;
        overflow: hidden;
        .handle {
            width: 100%;
            height: 1.5rem;
            position: absolute;
            top: 0;
            left: 0;
            background-color: rgba($color: #999, $alpha: 0.2);
            text-align: center;
            line-height: 1.5rem;
            user-select: none;
        }
        .colour-rgb {
            display: flex;
            flex-direction: column;
            width: 13.5rem;
            .colour-rgb-li {
                display: flex;
                height: 1.375rem;
                margin: 0.25rem 0;
                .text {
                    width: 1rem;
                    text-align: center;
                    user-select: none;
                }
                .sync-range {
                    width: 9rem;
                }
                .sync-text {
                    width: 1.5rem;
                    height: 1.25rem;
                    padding: 0 0.25rem;
                    text-align: center;
                    border: 1px #999 solid;
                    font-size: 0.75rem;
                    margin: 0.1875rem;
                    border: none;
                    border: 1px solid #333;
                    border-radius: 0.125rem;
                }
            }
        }
        .preview {
            display: flex;
            align-items: center;
            flex-direction: column;
            flex: 1;
            .color-board {
                width: 2rem;
                height: 2rem;
                box-shadow: $阴影;
            }
        }
        .palette-plate {
            display: block;
            box-sizing: border-box;
            width: 16rem;
            height: 16rem;
            margin-top: 1rem;
            border: 1px #ccc solid;
            background-size: 100%;
            position: relative;
            cursor: crosshair;
            img {
                width: 100%;
                height: 100%;
            }
        }
        .bottom {
            margin-top: 1rem;
            width: 100%;
            display: flex;
            justify-content: space-around;
            button {
                height: 1.75rem;
                padding: 0 1rem;
                border-radius: 0.25rem;
                text-align: center;
                box-shadow: 0 0 6px 0 rgba($color: #333, $alpha: 0.2);
                background-color: #fff;
                color: #1fafff;
                &:hover {
                    background-color: #e0e0e0;
                }
            }
            .apply {
                background-color: #1fafff;
                color: #fff;
                &:hover {
                    background-color: #008cff;
                }
            }
        }
    }
}
